const mongoose = require('mongoose')
const Schema = mongoose.Schema

const statistics = mongoose.Schema({
  type: Number, // 来访类型
  ip: String, // 受访ip
  uid: String,
  page: String, // 来访页面
  createdAt: { // 来访时间
    type: Date,
    default: Date.now()
  }
})

module.exports = mongoose.model('statistics', statistics)
